<!--<?php
print <<<EOT
-->

<script src="../css/edit.js"></script>

<!--Content Start-->
<table width="100%" border="0" align="center">
  <tr> 
    <td>&nbsp;</td>
  </tr>
  <tr> 
    <td>
    
     <!-- <form action="p_category.php" method="post" name="form1" enctype="multipart/form-data">-->
      <form action="p_category.php" method="post" name="form1">
      <table width="60%" align="left">
      <!--<tr><td>
      <table width="60%" border="0" align="center">
        <tr> 
          <td align="right">
            <input type="image" src="../images/admin/bt_cancel.gif" width="78" height="23" onclick="location.href='p_category.php'"> 
            <input type="image" src="../images/admin/bt_save.gif" width="76" height="22" onclick="form1.submit"> 
          </td>
        </tr>
      </table>
      </td></tr>-->
    
      <tr><td>
      <table width="95%" border="0" align="center">
        <tr> 
          <td align="right">&nbsp; </td>
        </tr>
        <tr> 
          <td>
            <table border="0" cellspacing="0" cellpadding="2">
              <tr> 
                <td>&nbsp;</td>
                <td>&nbsp;</td>
              </tr>
              <!--<tr> 
                <td>Code :</td>
                <td>
                  <input type="text" class="text" name="code" value="$code">	  
                </td>
              </tr>-->
              
              <tr> 
                <td>Name :</td>
                <td>
                  <input type="text" class="text" name="name" value="$name">	  
                  <input name="action" type="hidden" value="add">
                </td>
              </tr>
             <!--  <tr> 
                <td>Name Chinese :</td>
                <td>
                  <input type="text" class="text" name="namezh" />  
                 
                </td>
              </tr>-->
              
              <tr> 
                <td>Parent Category :<input id="hdLevel" name="hdLevel" type="hidden" value="0"/></td>
                <td id="tdCategory">
                  <select class="select" name="Parent0" id="Parent0" onchange="CategoryChange(this.options[this.selectedIndex].value,0,'tdCategory');">
                    <option value="0">--none--</option>
                    
<!--
EOT;
foreach ($category_ary as $k=>$v) {
print <<<EOT
-->

                    <option value="$k">$v</option>
                    
<!--
EOT;
} print <<<EOT
--> 

                  </select>	  
                </td>
              </tr>
         <tr> 
                <td>Publish :</td>
                <td>
                  <select class="select" name="publish">
                    <option value="1" selected>Yes</option>
					<option value="0">No</option>
                  </select>	  
                </td>
              </tr>       
             <!-- ˲ΪҪ
             <tr> 
                <td>Picture :</td>
                <td>
                  <input type="file" class="text" name="up_pic" size=50>	  
                </td>
              </tr>
              
              <tr> 
                <td>Guide Picture :</td>
                <td>
                  <input type="file" class="text" name="up_pic2" size=50>	  
                </td>
              </tr>
              
              <tr> 
                <td>e-Catalogue :</td>
                <td>
                  <input type="file" class="text" name="e_catalogue" size=50>	  
                </td>
              </tr>
              
              <tr> 
                <td>Description :</td>
                <td>
                  <textarea class="text" name="description" cols="60" rows="4" ></textarea>
                </td>
              </tr>-->
              
              <tr> 
                <td>Sequence :</td>
                <td><input type="text" class="text" name="seq" size=3 value="0"></td>
              </tr>
              
              <tr> 
                <td>&nbsp;</td>
                <td>&nbsp;</td>
              </tr>
            </table>
          </td>
        </tr>
      </table>
     </td></tr>
    
      <tr><td>
      <table width="95%" border="0" align="left">
        <tr> 
          <td align="center">
            <input type="image" src="../images/admin/bt_cancel.gif" width="78" height="23" onclick="location.href='p_category.php'"> 
            <input type="image" src="../images/admin/bt_save.gif" width="76" height="22" onclick="form1.submit"> 
          </td>
        </tr>
      </table>
      </td></tr>
      </table>
      </form>

      <p>&nbsp;</p></td>
  </tr>
</table>
<!--Content End-->

<!--
EOT;
?>-->